package com.dwxt.cdms.dao;

import com.dwxt.cdms.entity.TaskMessage;
import com.dwxt.cdms.entity.TaskMessageExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TaskMessageMapper {
    int countByExample(TaskMessageExample example);

    int deleteByExample(TaskMessageExample example);

    int deleteByPrimaryKey(String id);

    int insert(TaskMessage record);

    int insertSelective(TaskMessage record);

    List<TaskMessage> selectByExample(TaskMessageExample example);

    TaskMessage selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") TaskMessage record, @Param("example") TaskMessageExample example);

    int updateByExample(@Param("record") TaskMessage record, @Param("example") TaskMessageExample example);

    int updateByPrimaryKeySelective(TaskMessage record);

    int updateByPrimaryKey(TaskMessage record);

    TaskMessage selectByIdAndType(@Param("id")Integer id, @Param("type")String type);

    void updateStatusToFinish(@Param("id")Integer id);
}